﻿using System;
using System.Collections.Generic;
using System.Transactions;

using YhmOA.IDAL;
using YhmOA.Model;
using YhmOA.Common;

namespace YhmOA.BLL
{
    public class Integrated_Car_DriverBLL
    {
        private static ITDal<Integrated_Car_Driver> GetTDal()
        {
            return DataProvider.GetGEFDal<ITDal<Integrated_Car_Driver>>();
        }

        private static IIntegrated_Car_DriverDAL GetDal()
        {
            return DataProvider.GetEFDal<IIntegrated_Car_DriverDAL>();
        }

        /// <summary>
        /// 取得司机姓名列表
        /// </summary>
        /// <returns>司机姓名列表</returns>
        public static List<string> GetNameList()
        {
            return GetDal().GetNameList();
        }
    }
}
